package com.luxuewen.sxa.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wen
 */
@Configuration
public class RabbitMQConfig {
    public static final String SPRING_QUEUE = "spring";
    public static final String SPRING1_QUEUE = "spring1";

    @Bean
    public Queue Queue () {
        return new Queue(SPRING_QUEUE, true);
    }

    @Bean
    public Queue Queue1 () {
        return new Queue(SPRING1_QUEUE, true);
    }
}
